<?php
class ORMpz_module_menu {
  public function toObj($args) {
    $obj = new stdClass();
    if (isset($args->track_id)) {
      $obj->track_id =  $args->track_id;
    }
    if (isset($args->module_track_id)) {
      $obj->module_track_id =  $args->module_track_id;
    }
    if (isset($args->name)) {
      $obj->name =  $args->name;
    }
    if (isset($args->arg)) {
      $obj->arg =  $args->arg;
    }
    return $obj;
  }
}
?>
